package com.tianhui.consignortwofei.mvp.ui.activity.audit.vehicle;

import androidx.fragment.app.Fragment;

import com.fgs.common.CommonFragment;
import com.fgs.common.CommonPresenter;
import com.fgs.common.CommonView;
import com.tianhui.consignortwofei.R;
import com.tianhui.consignortwofei.mvp.ui.activity.audit.SearchActivity;
import com.tianhui.consignortwofei.mvp.ui.fragment.audit.VehicleListFragment;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class VehicleListActivity extends SearchActivity {


    @Override
    public CommonPresenter createPresenter() {
        return null;
    }

    @Override
    public CommonView createView() {
        return null;
    }

    @Override
    public String getToolbarTitle() {
        return "车辆列表";
    }

    @Override
    public void init() {
        super.init();
        setSearchKeyHint("请输入司机名字或车牌号");
    }

    @Override
    public List<Fragment> getFragments() {
        List<Fragment> fragmentList = new ArrayList<>();

        fragmentList.add(VehicleListFragment.newInstance("-1").setOnSearchClearListener(this));
        fragmentList.add(VehicleListFragment.newInstance("0").setOnSearchClearListener(this));
        fragmentList.add(VehicleListFragment.newInstance("2").setOnSearchClearListener(this));
        fragmentList.add(VehicleListFragment.newInstance("1").setOnSearchClearListener(this));
        return fragmentList;
    }

    @Override
    public List<String> getTabTitles() {
        return Arrays.asList(getResources().getStringArray(R.array.array_driver_status));
    }

    @Override
    public CommonFragment createFragment() {
        return null;
    }
}
